set(PROJECT_NAME viewer_io)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)

find_package(Qt5Core)
find_package(Qt5Concurrent)

include_directories(
        ${Qt5Core_INCLUDE_DIR}
        ${Qt5Concurrent_INCLUDE_DIR}
)

file( GLOB header_list ../../include/viewer_io/*.h)
file( GLOB source_list *.cpp)

add_library( ${PROJECT_NAME} SHARED ${header_list} ${source_list} )
target_link_libraries(${PROJECT_NAME} viewer_common Qt5::Core Qt5::Concurrent)

# target_compile_definitions( ${PROJECT_NAME} PRIVATE QCC_IO_LIBRARY_BUILD )